package run;

import ir.BindType;

public class Bind {

	private Facet left;
	private BindType bindType;
	private Facet right;
	
	public Bind(Facet left, BindType bindType, Facet right) {
		this.left = left;
		this.bindType = bindType;
		this.right = right;
		
		left.addDestination(right);
		right.addSource(left);
	}

	public Facet getLeft() {
		return left;
	}

	public Facet getRight() {
		return right;
	}

	public BindType getBindType() {
		return bindType;
	}

	public String toString() {
		return left.toString() + " " + bindType.toString() + " " + right.toString();
	}
	
}
